import { ref } from 'vue'
import { defineStore } from 'pinia'
import { appGetLayoutMenuData } from '@/apis/layout'

export const useLayoutmenuDataStore = defineStore('layoutmenuData', () => {
    const layoutMenuList = ref([])
    const getlayoutMenuList = async () => {
      const res = await appGetLayoutMenuData()
      layoutMenuList.value = res.data
    }

  return { layoutMenuList, getlayoutMenuList }
})
